﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Sauces.Bussinees.Entities.Caja
{
    public class Factura
    {
        public Factura()
        {
            this.DetalleFactura = new List<DetalleFactura>();
        }

        public Int32 Id { get; set; }
        public Cliente Cliente { get; set; }
        [Required(ErrorMessage = "Ingrese un Cliente")]
        public int IdCliente { get; set; }
        [Required(ErrorMessage = "Ingrese la Fecha")]
        public DateTime Fecha { get; set; }        
        public decimal SubTotal { get; set; }
        public decimal Igv { get; set; }
        public decimal Total { get; set; }

        public virtual ICollection<DetalleFactura> DetalleFactura { get; set; }

 
    }
}
